#include"mystdio.h"
#include<unistd.h>
int main()
{
    //模拟实现这四个接口
   _FILE* fd=_fopen("test.txt","a");
   if(fd==NULL)
   {
      // printf("open failed\n");
       return 1;
   }
   const char* msg="hello Linux\n";
   int cnt=10;
   while(cnt--)
   {
      _fwrite(fd,msg,strlen(msg));
      sleep(1);
   }
   //_fflush(fd);
   _fclose(fd);
    return 0;
}
